<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.org/ui">
    <h:form id="frmMenu">
        <p:panelMenu id="pnlMenu" styleClass="sideBar">
            <p:submenu label="#{i18n['frm.menu.sesion']}">
                <p:menuitem value="#{i18n['frm.menu.iniciar.sesion']}" action="#{loginMBean.iniciar}" icon="ui-icon-disk" ajax="false"
                            rendered="#{sessionMBean.sessionUsuarioDto == null}"/>
                <p:menuitem value="#{i18n['frm.menu.cerrar.sesion']}" action="#{loginMBean.cerrar}" icon="ui-icon-close" ajax="false"
                            rendered="#{sessionMBean.sessionUsuarioDto != null}"/>
            </p:submenu>
            <p:submenu label="#{i18n['frm.menu.seguridad']}" rendered="#{sessionMBean.sessionUsuarioDto != null}">
                <p:menuitem value="#{i18n['frm.menu.usuarios']}" action="#{usuarioMBean.iniciar}" icon="ui-icon-disk" ajax="false"/>
            </p:submenu>
        </p:panelMenu>
    </h:form>
</html>

